<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/11/23
 * Time: 17:19
 */
$pic_name = $_POST["pic_name"];
$sql = "SELECT * FROM `pw_pic` WHERE `pic_name`='$pic_name';";
$result = mysqli_query($link, $sql);
$row = mysqli_fetch_array($result);
$picid = $row[0];
var_dump($row);
?>